﻿/** \file
* \$Rev: 183 $
* 
* \$Date: 2010-04-14 00:34:38 +0000 (Wed, 14 Apr 2010) $
*
* \$URL: http://chorus-twitter.googlecode.com/svn/trunk/src/net/ErrorResponse.cs $
*/

using System;
using System.Xml.Serialization;

namespace chorus.net
{
	/// <summary>
	/// A response that indicates an error instead of a regular response.
	/// </summary>
	[XmlRoot(ElementName = "hash")]
	public class ErrorResponse
	{
		/// <summary>The original request.</summary>
		public string request;
		/// <summary>The error description.</summary>
		public string error;

		/// <summary>The formatted error description.</summary>
		public string Message
		{
			get
			{
				return "Request: " + request + Environment.NewLine +
					"Error: " + error;
			}
		}
	}
}
